package day020.homework;

import java.io.*;

public class P1 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("D:\\day020\\dog.jpg"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("D:\\day020\\dog111.jpg"));

        byte[] bys = new byte[1024];
        int len;
        while ((len = bis.read(bys)) != -1) {
            bos.write(bys, 0, len);
        }

        bis.close();
        bos.close();
    }
}
